public class Homework10 {
	public static void main(String[] args){
		Demo d1 =new Demo();
		Demo d2 = d1;
		d2.m();
		System.out.println(d1.i); // 101
		System.out.println(d2.i); // 101
	}
}

class Demo{
	int i = 100;
	public void m(){
		int j = i++; // 100
		System.out.println("i=" + i); // 101
		System.out.println("j=" + j); // 100 
	}
}